extends Relic

@export var amount := 1

func activate_relic(owner: RelicUI) -> void:
	Events.player_hand_drawn.connect(_add_mana.bind(owner), CONNECT_ONE_SHOT)
		
func _add_mana(owner: RelicUI) -> void:
	var player : Player = owner.get_tree().get_first_node_in_group("player")
	if player:
		player.stats.mana += amount
		owner.flash()
		
func get_tooltip() -> String:
	return tooltip % amount
